/**
 * <p>
 *
 * @Author：Roy
 * @Description：碳汇数据
 * @Date：Create by 2023-12-01 10:45:08
 */
import request from '@/utils/request'

const carbonSinkData = {
  // 分页查询碳汇数据
  queryList(data) {
    return request({
      url: '/energy-carbon/ecp-admin/carbonSinkData/queryPage',
      method: 'post',
      data
    })
  },
  // 查询碳汇数据
  queryListNoPage(data) {
    return request({
      url: '/energy-carbon/ecp-admin/carbonSinkData/queryList',
      method: 'post',
      data
    })
  },
  // 新增碳汇数据
  add(data) {
    return request({
      url: '/energy-carbon/ecp-admin/carbonSinkData/add',
      method: 'post',
      data
    })
  },
  // 编辑碳汇数据
  update(data) {
    return request({
      url: '/energy-carbon/ecp-admin/carbonSinkData/update',
      method: 'post',
      data
    })
  },
  // 删除碳汇数据
  deleteById(data) {
    return request({
      url: '/energy-carbon/ecp-admin/carbonSinkData/deleteById',
      method: 'post',
      data
    })
  },
  // 启用禁用
  enableOrDisable(data) {
    return request({
      url: '/energy-carbon/ecp-admin/carbonSinkData/enableOrDisable',
      method: 'post',
      data
    })
  },
  // 批量删除碳汇数据
  batchDelete(data) {
    return request({
      url: '/energy-carbon/ecp-admin/carbonSinkData/batchDelete',
      method: 'post',
      data
    })
  }
}

export default carbonSinkData
